<?php
$usuario = $_POST['usuario'];
$url = 'http://twitter.com/statuses/user_timeline/'.$usuario.'.rss';  
$xml = simplexml_load_file($url);
//header("content-type: application/xml; charset=UTF-8");
//echo "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ";
$x = '';  
 foreach($xml->channel->item as $node){  
   
 	$x .= "<twit>";
 	$x .= 		"<url>$node->link</url>";
 	$x .= 		"<title>$node->title</title>";  
 	$x .= 		"<date>".date("d/m/Y" , strtotime($node->pubDate)) . "</date>";  
 	
 	$x .= "</twit>";
    
 }  
//$x .= '';  

echo $x;